package com.bing.jh.controller;

import com.bing.bingPro.common.BaseResult;
import com.bing.jh.entity.dto.TZwArchivesDto;
import com.bing.jh.entity.vo.DzWzCostMatchDtlVO;
import com.bing.jh.service.DzWzCostMatchDtlService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 装维人员与成本随销数据匹配-匹配清单
 */
@RestController
@RequestMapping("dzWzCostMatchDtl")
public class DzWzCostMatchDtlController {

    @Resource
    private DzWzCostMatchDtlService dzWzCostMatchDtlService;

    @PostMapping("/list")
    public BaseResult<List<DzWzCostMatchDtlVO>> list(@RequestBody TZwArchivesDto tZwArchives) {
        return new BaseResult<>(dzWzCostMatchDtlService.list(tZwArchives));
    }

    @PostMapping("/dateList")
    public BaseResult<List<String>> dateList() {
        return new BaseResult<>(dzWzCostMatchDtlService.dateList());
    }
}
